import { Line } from "@/algorithms/curves";
import { RailsCanvasMgr } from "./rails_canvas_mgr"
export class LineTrack extends Line {
    public constructor(startPos: { x: number, y: number }, deltas: { dx: number, dy: number }) {
        super(startPos, deltas);
    }

    public draw(mgr: RailsCanvasMgr): void {
        mgr.beginPath();
        mgr.moveToPoint(this.startPoint);
        mgr.lineToPoint(this.getEndPoint());
        mgr.finishPath();
    }
}